{include file="public/header"}
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 分类列表</strong></div>
  <li> <a class="button border-main icon-plus-square-o" href="{:url('Auth/authAdd')}"> 添加内容</a> </li>
  <table class="table table-hover text-center">
    <tr>
      <th width="5%">ID</th>
      <th width="15%">权限组名称</th>
      <th width="10%">操作</th>
    </tr>
    {foreach $list as $v}
    <tr>
      <td>{$v['id']}</td>
      <td>{$v['title']}</td>
      <td>
        <div class="button-group"><a class="button border-main" href="{:url('auth/authEdit',['id'=>$v['id']])}"><span class="icon-edit"></span> 修改</a>
          <a class="button border-red" href="javascript:del({$v['id']})"><span class="icon-trash-o"></span> 删除</a>
        </div>
      </td>
    </tr>
    {/foreach}
    <tr>
      <td colspan="4"><div class="pagelist"> <a href="">上一页</a> <span class="current">1</span><a href="">2</a><a href="">3</a><a href="">下一页</a><a href="">尾页</a> </div></td>
    </tr>
  </table>
</div>
<script type="text/javascript">
  function del(id, mid) {
    if (confirm("您确定要删除吗?")) {
        location.href = 'authDel?id='+id;
    }
  }
</script>
</body>
</html>